package com.jiajia.server.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZSJia
 * @date 2021/8/11 011 - 15:21
 */
@RestController
public class HelloController {


    @GetMapping("/hello")
    public  String hello(){
        return  "hello";
    }


    @GetMapping("/hello/super")
    public  String hello2(){
        return  "ROLE_superAdmin";
    }

    @GetMapping("/hello/admin")
    public  String hello3(){
        return  "ROLE_admin";
    }

}
